Skip to content

Add test suite#37

Merged
pbeaucage merged 12 commits intomainfrom
36-test-suite
Jun 14, 2025
Merged

Add test suite#37
pbeaucage merged 12 commits intomainfrom
36-test-suite

Conversation

@martintb
Copy link
Copy Markdown
Collaborator

No description provided.

@martintb martintb linked an issue Mar 10, 2025 that may be closed by this pull request
@martintb martintb marked this pull request as draft March 10, 2025 21:40
@martintb martintb requested review from Copilot and pbeaucage June 14, 2025 18:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a comprehensive test suite for various components of AFL.double_agent and includes several formatting and configuration updates. Key changes include new test files covering unit, integration, and pipeline operations; additions of mock classes and utility functions for testing; and refinements to the Preprocessor module with code formatting improvements.

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/utils.py Added mock classes and helper functions for pipeline tests
tests/test_preprocessor.py Added unit tests covering SavgolFilter behavior
tests/test_pipeline_unit.py Added unit tests for the Pipeline class and its operations
tests/test_pipeline_op.py Added unit tests for PipelineOp, including creation and copy tests
tests/test_pipeline_integrated.py Added integration tests for end-to-end pipeline workflows
tests/test_extrapolator.py Added unit tests for extrapolator implementations
tests/test_data.py Added unit tests for the data module and dataset handling
tests/conftest.py Added global pytest configuration fixtures
tests/README.md Added README detailing the test suite structure and execution
pyproject.toml Updated dependencies and configurations for testing and linting
README.md Updated project README with badges and project information
AFL/double_agent/Preprocessor.py Made formatting changes and updated API calls for Preprocessor ops
.vscode/settings.json Configured VS Code settings for pytest-based testing
.github/workflows/tests.yml Added a GitHub Actions workflow to run tests on multiple Python versions
Comments suppressed due to low confidence (2)

AFL/double_agent/Preprocessor.py:848

  • Remove the print statement used for debugging in the VarsToArray initializer; consider using proper logging if traceability is needed.
print(self.input_variable, self.output_variable)

AFL/double_agent/Preprocessor.py:867

  • Remove the print statements in the ArrayToVars.calculate method to avoid leaving debugging output in production code.
print(self.output_variable)

@martintb
Copy link
Copy Markdown
Collaborator Author

@pbeaucage test coverage isn't anywhere near complete but I think it's better to have a partial suite than nothing. Please review and merge if there aren't any suggestions or missing critical tests.

@pbeaucage pbeaucage marked this pull request as ready for review June 14, 2025 18:45
Copy link
Copy Markdown
Collaborator

@pbeaucage pbeaucage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pbeaucage pbeaucage merged commit ab76951 into main Jun 14, 2025
5 checks passed
@pbeaucage pbeaucage deleted the 36-test-suite branch June 14, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test Suite

3 participants